package com.shen.shenproject.retrofit

import com.shen.shenproject.coroutine.retrofit.Repo
import io.reactivex.Observable
import io.reactivex.Single
import io.reactivex.SingleObserver
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path

/**
 * author:  shen
 * date:    2020/9/28
 *
 */

interface ShenRetrofitApi {

    @GET("users/{user}/repos")
    fun listRepos(@Path("user") user: String): Call<List<Repo>>

    @GET("users/{user}/repos")
    fun getUser(@Path("user") user: String): Call<List<Repo>>

    @GET("users/{user}/repos")
    fun listReposRx(@Path("user") user: String): Single<List<Repo>>

}